package com.xmsx.back.pojo;

import java.util.List;
import java.util.Objects;

public class ResultFirst<T> {

    private int start;
    private int end;
    private List<T> bachelor;
    private List<T> master;

    public ResultFirst() {
    }

    public ResultFirst(int start, int end, List<T> bachelor, List<T> master) {
        this.start = start;
        this.end = end;
        this.bachelor = bachelor;
        this.master = master;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public List<T> getBachelor() {
        return bachelor;
    }

    public void setBachelor(List<T> bachelor) {
        this.bachelor = bachelor;
    }

    public List<T> getMaster() {
        return master;
    }

    public void setMaster(List<T> master) {
        this.master = master;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ResultFirst)) return false;
        ResultFirst<?> that = (ResultFirst<?>) o;
        return getStart() == that.getStart() &&
                getEnd() == that.getEnd() &&
                Objects.equals(getBachelor(), that.getBachelor()) &&
                Objects.equals(getMaster(), that.getMaster());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getStart(), getEnd(), getBachelor(), getMaster());
    }

    @Override
    public String toString() {
        return "ResultFirst{" +
                "start=" + start +
                ", end=" + end +
                ", bachelor=" + bachelor +
                ", master=" + master +
                '}';
    }
}
